/*
 * @Author: your name
 * @Date: 2020-12-18 10:34:48
 * @LastEditTime: 2020-12-18 16:51:26
 * @LastEditors: Please set LastEditors
 * @Description: 此文件处理全局的隐患bug及elementuI的bug
 * @FilePath: \vue-element-admine:\hjimi\人脸\html\face-recognition\src\utils\bugHandle\paginationHandle.js
 */

 
class Bug {
    /**
     * @description: 处理element分页 更改每页条数执行2次bug
     * @param {页面分页对象， 表格数据} 
     */
    paginationHandle(pagingParams, getTabeData) {
        if(pagingParams['current'] * pagingParams['size'] > pagingParams['total']) { //页码 * 固定展示条数 > 接口返回的总条数
          } else {
            getTabeData
          }
    }
}
let bugHandle = new Bug()

export function paginationHandle(pagingParams, getTabeData) {
    // return bugHandle.paginationHandle(pagingParams, getTabeData)
    if(pagingParams['current'] * pagingParams['size'] > pagingParams['total']) { //页码 * 固定展示条数 > 接口返回的总条数
    } else {
      getTabeData
    }
}
